package com.ys.nms.module.business.controller.admin.ipv4Addresses.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - IP地址新增/修改 Request VO")
@Data
public class Ipv4AddressesSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16904")
    private Integer ipv4AddressId;

    @Schema(description = "IPv4 地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "IPv4 地址不能为空")
    private String ipv4Address;

    @Schema(description = "子网掩码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "子网掩码不能为空")
    private Integer ipv4Prefixlen;

    @Schema(description = "子网的网络地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "5008")
    @NotEmpty(message = "子网的网络地址不能为空")
    private String ipv4NetworkId;

    @Schema(description = "端口ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "7618")
    @NotNull(message = "端口ID不能为空")
    private Integer portId;

    @Schema(description = "SNMP 上下文名称", example = "芋艿")
    private String contextName;

}